.class public Lcom/estrongs/android/pop/app/FileChooserActivity;
.super Lcom/estrongs/android/pop/esclasses/ESActivity;
.source "FileChooserActivity.java"


# instance fields
.field d:Lcom/estrongs/android/widget/c;

.field private e:Z

.field private f:Z

.field private g:Ljava/lang/Runnable;

.field private h:Lcom/estrongs/android/pop/l;

.field private i:I

.field private final j:Lcom/estrongs/android/view/FileGridViewWrapper$b0;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->e:Z

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->f:Z

    const/4 v0, -0x1

    .line 4
    iput v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->i:I

    .line 5
    new-instance v0, Lcom/estrongs/android/pop/app/FileChooserActivity$i;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/FileChooserActivity$i;-><init>(Lcom/estrongs/android/pop/app/FileChooserActivity;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->j:Lcom/estrongs/android/view/FileGridViewWrapper$b0;

    return-void
.end method

.method private A()Z
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v1, "com.estrongs.action.PICK_FILE"

    .line 2
    invoke-virtual {v1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "com.estrongs.action.PLUGIN_PICK_FILE"

    .line 3
    invoke-virtual {v1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "android.intent.action.PICK"

    .line 4
    invoke-virtual {v1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "android.intent.action.GET_CONTENT"

    .line 5
    invoke-virtual {v1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "android.intent.action.RINGTONE_PICKER"

    .line 6
    invoke-virtual {v1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v0, 0x1

    :goto_1
    return v0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/FileChooserActivity;Ljava/lang/String;)Landroid/net/Uri;
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/FileChooserActivity;->d(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p0

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/FileChooserActivity;Lcom/estrongs/fs/g;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/FileChooserActivity;->b(Lcom/estrongs/fs/g;)V

    return-void
.end method

.method private a(Landroid/content/Intent;Ljava/lang/String;)Z
    .locals 7

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "android.intent.extra.ringtone.TYPE"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    .line 5
    invoke-direct {p0, p2}, Lcom/estrongs/android/pop/app/FileChooserActivity;->d(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    .line 6
    invoke-static {p2}, Lcom/estrongs/android/util/n0;->b(Ljava/lang/String;)I

    move-result v4

    .line 7
    invoke-static {p2}, Lcom/estrongs/android/util/n0;->k(Ljava/lang/String;)Z

    move-result v5

    const/4 v6, 0x1

    if-eqz v5, :cond_1

    sget-boolean v5, Lcom/estrongs/android/pop/j;->s0:Z

    if-nez v5, :cond_0

    const v5, 0x20026

    if-eq v5, v4, :cond_1

    :cond_0
    const/4 v5, 0x1

    goto :goto_0

    :cond_1
    const/4 v5, 0x0

    :goto_0
    if-nez v5, :cond_4

    const v5, 0x3002a

    if-eq v4, v5, :cond_3

    .line 8
    invoke-virtual {p0, p2}, Lcom/estrongs/android/pop/app/FileChooserActivity;->c(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_2

    goto :goto_1

    :cond_2
    const/4 v5, 0x0

    goto :goto_2

    :cond_3
    :goto_1
    const/4 v5, 0x1

    :cond_4
    :goto_2
    if-eqz v5, :cond_5

    .line 9
    invoke-virtual {p0}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v3

    invoke-static {v3, p2, v0}, Lcom/estrongs/android/util/e0;->a(Landroid/content/ContentResolver;Ljava/lang/String;I)Landroid/net/Uri;

    move-result-object v3

    :cond_5
    if-nez v3, :cond_6

    const p1, 0x7f1109c6

    .line 10
    invoke-static {p0, p1, v6}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    return v2

    .line 11
    :cond_6
    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string p2, "android.intent.extra.ringtone.PICKED_URI"

    .line 12
    invoke-virtual {p1, p2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 13
    invoke-virtual {p1, v3}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    return v6
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/FileChooserActivity;)Z
    .locals 0

    .line 2
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->e:Z

    return p0
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/FileChooserActivity;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->i:I

    return p0
.end method

.method private b(Lcom/estrongs/fs/g;)V
    .locals 7

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->f:Z

    const/4 v1, -0x1

    if-eqz v0, :cond_1

    .line 3
    invoke-interface {p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->U1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {p1}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/fs/l;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    const p1, 0x7f110952

    const/4 v0, 0x0

    .line 4
    invoke-static {p0, p1, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    goto :goto_0

    .line 5
    :cond_0
    invoke-static {p0, p1}, Lcom/estrongs/android/util/m0;->b(Landroid/content/Context;Lcom/estrongs/fs/g;)Landroid/content/Intent;

    move-result-object p1

    .line 6
    invoke-virtual {p0, v1, p1}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 7
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->finish()V

    :goto_0
    return-void

    .line 8
    :cond_1
    invoke-interface {p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v0

    .line 9
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 10
    iget-object v3, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->h:Lcom/estrongs/android/pop/l;

    invoke-virtual {v3, v2}, Lcom/estrongs/android/pop/l;->X(Ljava/lang/String;)V

    .line 11
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/FileChooserActivity;->a(Lcom/estrongs/fs/g;)Z

    move-result v2

    if-nez v2, :cond_2

    return-void

    .line 12
    :cond_2
    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2}, Landroid/content/Intent;-><init>()V

    .line 13
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->U1(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    const v1, 0x7f1108ec

    .line 14
    invoke-virtual {p0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const v4, 0x7f1107fd

    .line 15
    invoke-virtual {p0, v4}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "\n"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const v4, 0x7f110b53

    invoke-virtual {p0, v4}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 16
    invoke-static {p0, v1, v3}, Les/dj;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 17
    new-instance v1, Lcom/estrongs/android/pop/app/FileChooserActivity$j;

    invoke-direct {v1, p0, v0, p1, v2}, Lcom/estrongs/android/pop/app/FileChooserActivity$j;-><init>(Lcom/estrongs/android/pop/app/FileChooserActivity;Ljava/lang/String;Lcom/estrongs/fs/g;Landroid/content/Intent;)V

    invoke-static {v1}, Lcom/estrongs/android/util/o;->a(Ljava/lang/Runnable;)V

    return-void

    .line 18
    :cond_3
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 19
    new-instance p1, Ljava/io/File;

    invoke-direct {p1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {p1}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object p1

    goto :goto_1

    .line 20
    :cond_4
    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    .line 21
    :goto_1
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v3

    const-string v4, "android.intent.action.RINGTONE_PICKER"

    .line 22
    invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_6

    .line 23
    invoke-direct {p0, v2, v0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->a(Landroid/content/Intent;Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_5

    return-void

    .line 24
    :cond_5
    invoke-virtual {p0, v1, v2}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 25
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->finish()V

    return-void

    .line 26
    :cond_6
    invoke-static {v0}, Lcom/estrongs/android/util/n0;->z(Ljava/lang/String;)Z

    move-result v3

    const/4 v4, 0x0

    if-eqz v3, :cond_d

    .line 27
    iget-boolean v3, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->e:Z

    const/16 v5, 0x1019

    if-eqz v3, :cond_7

    .line 28
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    const/4 v1, 0x1

    const-string v2, "setWallpaper"

    .line 29
    invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 30
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 31
    invoke-virtual {v1, p1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 32
    const-class p1, Lcom/estrongs/android/pop/app/imageviewer/CropImage;

    invoke-virtual {v1, p0, p1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 33
    invoke-virtual {v1, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 34
    invoke-virtual {p0, v1, v5}, Landroidx/fragment/app/FragmentActivity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void

    .line 35
    :cond_7
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v3

    if-eqz v3, :cond_8

    const-string v6, "crop"

    .line 36
    invoke-virtual {v3, v6}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    goto :goto_2

    :cond_8
    move-object v6, v4

    :goto_2
    if-eqz v6, :cond_a

    .line 37
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    const-string v1, "circle"

    .line 38
    invoke-virtual {v6, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_9

    const-string v1, "circleCrop"

    const-string v2, "true"

    .line 39
    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 40
    :cond_9
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 41
    invoke-virtual {v1, p1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 42
    const-class p1, Lcom/estrongs/android/pop/app/imageviewer/CropImage;

    invoke-virtual {v1, p0, p1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 43
    invoke-virtual {v1, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 44
    invoke-virtual {v1, v3}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 45
    invoke-virtual {p0, v1, v5}, Landroidx/fragment/app/FragmentActivity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void

    :cond_a
    if-eqz v3, :cond_b

    const-string p1, "return-data"

    .line 46
    invoke-virtual {v3, p1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_b

    .line 47
    invoke-static {p0}, Les/tj;->a(Landroid/content/Context;)Les/tj;

    move-result-object p1

    .line 48
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const/16 v5, 0x40

    const-string v6, "outputX"

    invoke-virtual {v3, v6, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v3

    .line 49
    invoke-virtual {p1, v3, v0, v4}, Les/tj;->a(ILjava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object p1

    const-string v0, "data"

    invoke-virtual {v2, v0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    goto :goto_3

    .line 50
    :cond_b
    invoke-static {}, Lcom/estrongs/android/util/h;->a()Lcom/estrongs/android/util/h;

    move-result-object p1

    .line 51
    invoke-virtual {p0}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v3

    .line 52
    invoke-virtual {p1, v3, v0}, Lcom/estrongs/android/util/h;->a(Landroid/content/ContentResolver;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    if-eqz p1, :cond_c

    .line 53
    invoke-virtual {v2, p1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    goto :goto_3

    .line 54
    :cond_c
    new-instance p1, Ljava/io/File;

    invoke-direct {p1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {p1}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object p1

    invoke-virtual {v2, p1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 55
    :goto_3
    invoke-virtual {p0, v1, v2}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 56
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->finish()V

    return-void

    .line 57
    :cond_d
    invoke-static {v0}, Lcom/estrongs/android/util/n0;->k(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_e

    .line 58
    invoke-static {v0}, Lcom/estrongs/fs/impl/media/c;->f(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    invoke-virtual {v2, p1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 59
    invoke-virtual {p0, v1, v2}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 60
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->finish()V

    return-void

    .line 61
    :cond_e
    invoke-static {v0}, Lcom/estrongs/android/util/n0;->Q(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_f

    .line 62
    invoke-direct {p0, v0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->d(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    invoke-virtual {v2, p1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 63
    invoke-virtual {p0, v1, v2}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 64
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->finish()V

    return-void

    .line 65
    :cond_f
    sget-boolean v3, Lcom/estrongs/android/pop/j;->p0:Z

    if-nez v3, :cond_11

    iget v3, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->i:I

    if-nez v3, :cond_10

    goto :goto_4

    .line 66
    :cond_10
    new-instance v3, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {v3, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    const v5, 0x7f1107f9

    .line 67
    invoke-virtual {v3, v5}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    const v5, 0x7f03000e

    new-instance v6, Lcom/estrongs/android/pop/app/FileChooserActivity$a;

    invoke-direct {v6, p0, v2, v0, p1}, Lcom/estrongs/android/pop/app/FileChooserActivity$a;-><init>(Lcom/estrongs/android/pop/app/FileChooserActivity;Landroid/content/Intent;Ljava/lang/String;Landroid/net/Uri;)V

    .line 68
    invoke-virtual {v3, v5, v1, v6}, Lcom/estrongs/android/ui/dialog/q$n;->a(IILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    const p1, 0x7f110299

    .line 69
    invoke-virtual {v3, p1, v4}, Lcom/estrongs/android/ui/dialog/q$n;->f(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 70
    invoke-virtual {v3}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void

    .line 71
    :cond_11
    :goto_4
    invoke-direct {p0, v0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->d(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    invoke-virtual {v2, p1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 72
    invoke-virtual {p0, v1, v2}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 73
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->finish()V

    return-void
.end method

.method private d(Ljava/lang/String;)Landroid/net/Uri;
    .locals 0

    .line 1
    invoke-static {p1}, Lcom/estrongs/android/pop/app/FileContentProvider;->a(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    return-object p1
.end method


# virtual methods
.method protected a(Lcom/estrongs/fs/g;)Z
    .locals 0

    const/4 p1, 0x1

    return p1
.end method

.method protected c(Ljava/lang/String;)Z
    .locals 2

    const/4 v0, 0x0

    if-nez p1, :cond_0

    return v0

    :cond_0
    const-string v1, ".cdf"

    .line 1
    invoke-virtual {p1, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, ".dcf"

    invoke-virtual {p1, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, ".DCF"

    invoke-virtual {p1, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, ".CDF"

    invoke-virtual {p1, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    :cond_1
    const/4 v0, 0x1

    :cond_2
    return v0
.end method

.method public finish()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/estrongs/android/widget/c;->d()Lcom/estrongs/android/ui/dialog/q;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    invoke-virtual {v0}, Lcom/estrongs/android/widget/c;->a()V

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->g:Ljava/lang/Runnable;

    if-eqz v0, :cond_1

    .line 4
    invoke-interface {v0}, Ljava/lang/Runnable;->run()V

    const/4 v0, 0x0

    .line 5
    iput-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->g:Ljava/lang/Runnable;

    .line 6
    :cond_1
    invoke-static {}, Lcom/estrongs/android/ui/dialog/VerifyPasswordDialog;->b()V

    .line 7
    invoke-super {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public h(I)V
    .locals 1

    .line 1
    invoke-virtual {p0, p1}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    const/4 v0, 0x0

    invoke-static {p0, p1, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    const/16 v0, 0x1019

    if-ne p1, v0, :cond_0

    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 1
    invoke-virtual {p0, p2, p3}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->finish()V

    .line 3
    :cond_0
    invoke-super {p0, p1, p2, p3}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onActivityResult(IILandroid/content/Intent;)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 11

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->u()Z

    move-result p1

    if-nez p1, :cond_0

    return-void

    .line 3
    :cond_0
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const/4 v0, -0x1

    const-string v1, "file_select_way"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->i:I

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Intent;->getType()Ljava/lang/String;

    move-result-object p1

    .line 5
    invoke-static {p1}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string v0, "vnd.android.cursor.item"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_1

    const p1, 0x7f110774

    const/4 v0, 0x0

    .line 6
    invoke-static {p0, p1, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    .line 7
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->finish()V

    return-void

    .line 8
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->h:Lcom/estrongs/android/pop/l;

    .line 9
    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->k1()Z

    move-result p1

    .line 10
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getDataString()Ljava/lang/String;

    move-result-object v0

    .line 11
    invoke-static {v0}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_3

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_2

    goto :goto_0

    .line 12
    :cond_2
    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    const-string v2, "file:///"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_5

    const/4 v1, 0x7

    .line 13
    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_1

    .line 14
    :cond_3
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->h:Lcom/estrongs/android/pop/l;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->O()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_4

    .line 15
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_5

    .line 16
    :cond_4
    invoke-static {}, Lcom/estrongs/android/pop/c;->b()Ljava/lang/String;

    move-result-object v0

    :cond_5
    :goto_1
    move-object v3, v0

    .line 17
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v1, "android.intent.action.SET_WALLPAPER"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->e:Z

    .line 18
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v1, "android.intent.action.CREATE_SHORTCUT"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->f:Z

    .line 19
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/FileChooserActivity;->A()Z

    move-result v0

    const v7, 0x7f11006a

    const-string v8, "com.estrongs.intent.extra.BUTTON_TITLE"

    const/4 v9, 0x0

    const v10, 0x7f110299

    if-nez v0, :cond_9

    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->e:Z

    if-nez v0, :cond_9

    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->f:Z

    if-eqz v0, :cond_6

    goto :goto_2

    .line 20
    :cond_6
    new-instance v4, Lcom/estrongs/android/pop/app/FileChooserActivity$d;

    invoke-direct {v4, p0, p1}, Lcom/estrongs/android/pop/app/FileChooserActivity$d;-><init>(Lcom/estrongs/android/pop/app/FileChooserActivity;Z)V

    .line 21
    new-instance p1, Lcom/estrongs/android/widget/c;

    const/4 v5, 0x1

    const/4 v6, 0x1

    move-object v1, p1

    move-object v2, p0

    invoke-direct/range {v1 .. v6}, Lcom/estrongs/android/widget/c;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/estrongs/fs/h;ZZ)V

    iput-object p1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    .line 22
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-virtual {p1, v8}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_7

    .line 23
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    if-nez v0, :cond_8

    .line 24
    :cond_7
    invoke-virtual {p0, v7}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    .line 25
    :cond_8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    new-instance v1, Lcom/estrongs/android/pop/app/FileChooserActivity$e;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/FileChooserActivity$e;-><init>(Lcom/estrongs/android/pop/app/FileChooserActivity;)V

    invoke-virtual {v0, p1, v1}, Lcom/estrongs/android/widget/c;->b(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 26
    iget-object p1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    invoke-virtual {p0, v10}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0, v9}, Lcom/estrongs/android/widget/c;->a(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    goto :goto_4

    :cond_9
    :goto_2
    const-string v0, "65536"

    .line 27
    invoke-static {v0}, Les/rj;->a(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_a

    .line 28
    new-instance v0, Les/pj;

    invoke-direct {v0, p0}, Les/pj;-><init>(Landroid/content/Context;)V

    invoke-static {v0}, Les/rj;->a(Les/uj;)V

    .line 29
    :cond_a
    new-instance v4, Lcom/estrongs/android/pop/app/FileChooserActivity$b;

    invoke-direct {v4, p0, p1}, Lcom/estrongs/android/pop/app/FileChooserActivity$b;-><init>(Lcom/estrongs/android/pop/app/FileChooserActivity;Z)V

    .line 30
    instance-of p1, p0, Lcom/estrongs/android/pop/app/ESRingtoneChooserActivity;

    .line 31
    sget-boolean v0, Lcom/estrongs/android/pop/j;->Q:Z

    if-eqz v0, :cond_b

    const/4 p1, 0x1

    const/4 v6, 0x1

    goto :goto_3

    :cond_b
    move v6, p1

    .line 32
    :goto_3
    new-instance p1, Lcom/estrongs/android/widget/c;

    const/4 v5, 0x0

    move-object v1, p1

    move-object v2, p0

    invoke-direct/range {v1 .. v6}, Lcom/estrongs/android/widget/c;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/estrongs/fs/h;ZZ)V

    iput-object p1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    .line 33
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->j:Lcom/estrongs/android/view/FileGridViewWrapper$b0;

    invoke-virtual {p1, v0}, Lcom/estrongs/android/widget/c;->a(Lcom/estrongs/android/view/FileGridViewWrapper$b0;)V

    .line 34
    iget-boolean p1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->f:Z

    if-nez p1, :cond_c

    .line 35
    iget-object p1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    invoke-virtual {p0, v10}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0, v9}, Lcom/estrongs/android/widget/c;->c(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    goto :goto_4

    .line 36
    :cond_c
    iget-object p1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    invoke-virtual {p0, v10}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0, v9}, Lcom/estrongs/android/widget/c;->a(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 37
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-virtual {p1, v8}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_d

    .line 38
    invoke-virtual {p0, v7}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    .line 39
    :cond_d
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    new-instance v1, Lcom/estrongs/android/pop/app/FileChooserActivity$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/FileChooserActivity$c;-><init>(Lcom/estrongs/android/pop/app/FileChooserActivity;)V

    invoke-virtual {v0, p1, v1}, Lcom/estrongs/android/widget/c;->b(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 40
    :goto_4
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const-string v0, "com.estrongs.intent.extra.TITLE"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_e

    const p1, 0x7f110b49

    .line 41
    invoke-virtual {p0, p1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    .line 42
    :cond_e
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/widget/c;->a(Ljava/lang/CharSequence;)V

    .line 43
    iget-object p1, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    new-instance v0, Lcom/estrongs/android/pop/app/FileChooserActivity$f;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/FileChooserActivity$f;-><init>(Lcom/estrongs/android/pop/app/FileChooserActivity;)V

    invoke-virtual {p1, v0}, Lcom/estrongs/android/widget/c;->a(Landroid/content/DialogInterface$OnDismissListener;)V

    return-void
.end method

.method protected onResume()V
    .locals 2

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onResume()V

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->u()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    invoke-virtual {v0}, Lcom/estrongs/android/widget/c;->d()Lcom/estrongs/android/ui/dialog/q;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    invoke-virtual {v0}, Lcom/estrongs/android/widget/c;->m()V

    goto :goto_0

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->d:Lcom/estrongs/android/widget/c;

    invoke-virtual {v0}, Lcom/estrongs/android/widget/c;->n()V

    .line 6
    :goto_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    .line 7
    invoke-virtual {v0}, Lcom/estrongs/android/pop/FexApplication;->m()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 8
    new-instance v0, Lcom/estrongs/android/pop/app/FileChooserActivity$g;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/FileChooserActivity$g;-><init>(Lcom/estrongs/android/pop/app/FileChooserActivity;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/FileChooserActivity;->g:Ljava/lang/Runnable;

    .line 9
    sget-object v0, Lcom/estrongs/android/ui/dialog/VerifyPasswordDialog$DialogType;->START:Lcom/estrongs/android/ui/dialog/VerifyPasswordDialog$DialogType;

    invoke-static {p0, v0}, Lcom/estrongs/android/ui/dialog/VerifyPasswordDialog;->a(Landroid/content/Context;Lcom/estrongs/android/ui/dialog/VerifyPasswordDialog$DialogType;)Lcom/estrongs/android/ui/dialog/VerifyPasswordDialog;

    move-result-object v0

    .line 10
    new-instance v1, Lcom/estrongs/android/pop/app/FileChooserActivity$h;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/FileChooserActivity$h;-><init>(Lcom/estrongs/android/pop/app/FileChooserActivity;)V

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/VerifyPasswordDialog;->a(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 11
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/VerifyPasswordDialog;->a()V

    :cond_2
    return-void
.end method
